﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="index.aspx.cs" Inherits="index" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Import Namespace="wzwebsite" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="System.Data" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="bg" height="186" cellspacing="0" cellpadding="0" width="749" border="0">
        <tbody>
            <tr>
                <td width="119" height="25">
                    &nbsp;&nbsp;
                    <img height="11" src="images/index_57.jpg" width="19">&nbsp;<strong> 企业简介</strong>
                </td>
                <td width="7">
                    <img height="25" src="images/index_51.jpg" width="7">
                </td>
                <td align="right" width="655" background="images/index_53.jpg">
                </td>
            </tr>
            <tr>
                <td align="middle" colspan="3" height="159">
                    <center>
                        <table cellspacing="5" cellpadding="0" width="720" border="0">
                            <tbody>
                                <tr>
                                    <td>
                                        <div id="tabcontent1">
                                            <table height="123px" cellspacing="0" cellpadding="0" width="627" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td class="hbg" valign="center" align="middle" width="141" height="123">
                                                            <img height="104" src="images/tp.jpg" width="126">
                                                        </td>
                                                        <td width="12">
                                                            &nbsp;
                                                        </td>
                                                        <td style="color: #5b5b5b; line-height: 200%" align="left" width="474">
                                                            <a href="about.html" style="color: #000; text-indent: 16px; text-decoration: none;">
                                                                <%= cont.ToString().Length > 230 ? cont.ToString().Substring(0, 230) + "..." : cont.ToString()%></a>
                                                            </span>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </center>
                </td>
            </tr>
        </tbody>
    </table>
    <table height="8px" width="749">
        <tr>
            <td>
            </td>
        </tr>
    </table>
    <table class="bg" height="186" cellspacing="0" cellpadding="0" width="749" border="0">
        <tbody>
            <tr>
                <td width="119" height="25">
                    &nbsp;&nbsp;
                    <img height="11" src="images/index_57.jpg" width="19">&nbsp;<strong> 推荐产品</strong>
                </td>
                <td width="7">
                    <img height="25" src="images/index_51.jpg" width="7">
                </td>
                <td align="right" width="655" background="images/index_53.jpg">
                    <a href="pro2.html"><span style="color: Red; font-size: 12px; font-family: 宋体">更多>></span></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td align="middle" colspan="3" height="159">
                    <center>
                        <table cellspacing="5" cellpadding="0" width="720" border="0">
                            <tbody>
                                <tr>
                                    <td width="20">
                                        <img id="r_l" onclick="r_left()" src="images/moveleft.gif">
                                    </td>
                                    <td>
                                        <table cellspacing="0" cellpadding="0" width="680" border="0">
                                            <tbody>
                                                <tr>
                                                    <td valign="top" background="images/dianqiSite.htm" height="120">
                                                        <table cellspacing="0" cellpadding="0" width="680" border="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td valign="center" align="middle" height="120">
                                                                        <div id="demo" style="overflow: hidden; width: 680px; color: #ffffff; height: 120px">
                                                                            <table cellpadding="0" width="100%" align="left" border="0" cellspace="0">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td id="demo1" valign="top">
                                                                                            <table cellspacing="1" cellpadding="1">
                                                                                                <tbody>
                                                                                                    <tr valign="top">
                                                                                                        <td valign="top" nowrap>
                                                                                                            <div align="right">
                                                                                                                <table cellspacing="0" cellpadding="0" align="center" border="0">
                                                                                                                    <tbody>
                                                                                                                        <tr>
                                                                                                                            <%   
                                                                                                                                string sql = "select top 10 * from product where istuijian =1 order by [order]";

                                                                                                                                DataTable dt5 = sqlhelper.GetDataTable(CommandType.Text, sql, null);
                                                                                                                                for (int i = 0; i < dt5.Rows.Count; i++)
                                                                                                                                {
                                                                                                                                    string url = "probig-" + dt5.Rows[i]["pro_id"].ToString() + ".html";
                                                                                                                                    string newsurl = "admin/file/" + getfirst(dt5.Rows[i]["pro_img"].ToString());
                                                                                                                            %>
                                                                                                                            <td align="middle">
                                                                                                                                <table cellspacing="0" cellpadding="0" width="150" align="center" border="0">
                                                                                                                                    <tbody>
                                                                                                                                        <tr>
                                                                                                                                            <td align="middle" height="100">
                                                                                                                                                <a href="<%= url%>" target="_blank">
                                                                                                                                                    <img height="98" src="<%= newsurl%>" width="100" border="0"></a>
                                                                                                                                            </td>
                                                                                                                                        </tr>
                                                                                                                                        <tr>
                                                                                                                                            <td class="nav1" align="middle" height="20">
                                                                                                                                                <a class="apm2" href="<%= url%>" target="_blank">
                                                                                                                                                    <%= sqlhelper.cutstr(dt5.Rows[i]["content"].ToString(), 15)%></a>
                                                                                                                                            </td>
                                                                                                                                        </tr>
                                                                                                                                    </tbody>
                                                                                                                                </table>
                                                                                                                            </td>
                                                                                                                            <%}%>
                                                                                                                        </tr>
                                                                                                                    </tbody>
                                                                                                                </table>
                                                                                                            </div>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </tbody>
                                                                                            </table>
                                                                                        </td>
                                                                                        <td id="demo2" width="0">
                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                        <script language="JavaScript" type="text/javascript">
                                                                            var dir = 1//每步移动像素，大＝快
                                                                            var speed = 20//循环周期（毫秒）大＝慢
                                                                            demo2.innerHTML = demo1.innerHTML
                                                                            function Marquee() {

                                                                                if (dir > 0 && (demo2.offsetWidth - demo.scrollLeft) <= 0) demo.scrollLeft = 0
                                                                                if (dir < 0 && (demo.scrollLeft <= 0)) demo.scrollLeft = demo2.offsetWidth
                                                                                demo.scrollLeft += dir
                                                                                demo.onmouseover = function () { clearInterval(MyMar) } //暂停移动
                                                                                demo.onmouseout = function () { MyMar = setInterval(Marquee, speed) } //继续移动
                                                                            }
                                                                            function r_left() { if (dir = -1) dir = 1 } //换向左移
                                                                            function r_right() { if (dir = 1) dir = -1 } //换向右移
                                                                            var MyMar = setInterval(Marquee, speed)

                                                                        </script>
                                                                    </td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                    <td width="20">
                                        <img id="r_r" onclick="r_right()" src="images/moveright.gif">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </center>
                </td>
            </tr>
        </tbody>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <td align="middle" width="95" background="images/index_11.jpg" height="30">
        <a class="HUO" href="index.html">首页</a>
    </td>
    <td width="10">
        &nbsp;
    </td>
    <td valign="center" align="middle" width="95" background="images/index_13.jpg">
        <a class="HUO1" href="about.html">关于澳星</a>
    </td>
    <td valign="center" align="middle" width="10">
        &nbsp;
    </td>
    <td valign="center" align="middle" width="95" background="images/index_13.jpg">
        <a class="HUO1" href="pro.html">产品中心</a>
    </td>
    <td valign="center" align="middle" width="10">
        &nbsp;
    </td>
    <td valign="center" align="middle" width="95" background="images/index_13.jpg">
        <a class="HUO1" href="contact.html">联系我们</a>
    </td>
    <td valign="center" align="middle" width="10">
        &nbsp;
    </td>
    <td valign="center" align="middle" width="95" background="images/index_13.jpg">
        <a class="HUO1" href="contactus.html">留言板</a>
    </td>
</asp:Content>
